<?php
include("food_conf.php");
?>
<?php
Session_Start();
$student_ID = $_SESSION["student_ID"];
$display = "select * from shop";
$result = mysql_query($display,$conn) or die ("用户数据加载失败: ".mysql_error());
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>学生管理</title>
  <style text="text/css">
  td{
  font-size:28px;
  background-color:#CCC;
  width:250px;
  height:150px}
  body,td,th {
	font-size: 18px;
	color: #93F;
}
body {
	background-color: #FFF;
	background-image: url(image/%E4%B8%BB%E7%95%8C%E9%9D%A2.jpg);
	background-repeat: repeat;
	color: #66CC99;
}
  a {
	font-size: 24px;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
  </style>
</head>
<body>
<div align="center">
  <h3>欢迎用户<?php echo $student_ID;?>订餐！</h3>
</div>
<div align="center">
<table align="center" cellspacing="20">
<?php
if ($num = mysql_num_rows($result))
{
	$i=4;
	while($row = mysql_fetch_array($result,MYSQL_ASSOC))
	{
		if($i==4){
?>
<tr >
<?php $i++;}else if($i%4==0){?></tr><tr ><?php $i++; }
else{
 ?>
	<td align="center" style="color: #F93"><a href="myfood.php?shop_ID=<?php echo $row['shop_ID']?>">
	<?php echo $row['shop_name']; $i++;?>
    </a></td>

<?php
		}
	}
}
mysql_close($conn);
?>
</table>
<div style="position: absolute; width: 101px; left: 955px; top: 22px; background-color: #999999; layer-background-color: #999999; border: 1px none 
#000000; font-weight: bold; color: #FF0; height: 26px;">订单页面</div>
<div style="position: absolute; width: 101px; left: 1078px; top: 22px; background-color: #999999; layer-background-color: #999999; border: 1px none 
#000000; font-weight: bold; color: #FF0; height: 26px;">账户管理</div>
</div>
</body>
</html>